#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

//P721
int main08()
{
	float x = 0, y = 0;
	int z = 0;
	printf("please input x,y,z:");
	scanf("%f %f %d", &x, &y, &z);
	float result = x + z % 3 * (int)(x + y) % 2 / 4;
	printf("result = %f\n", result);
	return 0; 
}